package com.leizi.igym.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-04-04  22:55
 * @Description:
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "查询条件查询返回的用户对象")
public class UserVO implements Serializable {
    @Serial
    private static final long serialVersionUID = -473750460178449451L;

    @Schema(name ="主键值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name ="用户名")
    private String username;

    @Schema(name ="昵称")
    private String nickname;

    @Schema(name ="头像")
    private String avatar;

    @Schema(name = "用户简介")
    private String intro;

    @Schema(name = "用户状态")
    private Integer status;

    @Schema(name = "用户角色id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    @Schema(name = "用户电话")
    private String phone;
}
